using System.Collections.ObjectModel;
using Common.NotifyEvent;

namespace SWellPlate
{
	public class WellRow : NotifyPropertyChanged
	{
		private ObservableCollection<WellCell> _Items = new ObservableCollection<WellCell>();

		private string _Name;

		private bool _IsSelected;

		public ObservableCollection<WellCell> Items
		{
			get
			{
				return _Items;
			}
		}

		public string Name
		{
			get
			{
				return _Name;
			}
			set
			{
				if (!(_Name == value))
				{
					_Name = value;
					OnPropertyChanged("Name");
				}
			}
		}

		public bool IsSelected
		{
			get
			{
				return _IsSelected;
			}
			set
			{
				if (_IsSelected != value)
				{
					_IsSelected = value;
					OnPropertyChanged("IsSelected");
				}
			}
		}
	}
}
